<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "mobile_range".
 *
 * @property int $id
 * @property int $prefix 号段
 * @property string $provice 省份
 * @property string $city 城市
 * @property string $operator 运营商
 * @property string $zone 区号
 * @property string $code 邮编
 */
class MobileRange extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'mobile_range';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['prefix'], 'integer'],
            [['provice', 'city', 'operator'], 'string', 'max' => 50],
            [['zone'], 'string', 'max' => 10],
            [['code'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'prefix' => '号段',
            'provice' => '省份',
            'city' => '城市',
            'operator' => '运营商',
            'zone' => '区号',
            'code' => '邮编',
        ];
    }
}
